package Code;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int[] a = new int[5];
        Scanner scanner = new Scanner(System.in);
        for (int i = 0;i < a.length;i ++) {
            a[i] = scanner.nextInt();
        }
        for (int i = 0;i < a.length;i ++){
            for (int j = 0;j < a.length - 1;j ++){
                if (a[j] > a[j + 1]) {
                    int t = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = t;
                }
            }
        }
        for (int i = 0;i < a.length;i ++){
            System.out.println(a[i]);
        }
    }
}